#ifndef MATERIALS_H
#define MATERIALS_H

#include <vector>

#include "textures.h"
#include "colors.h"

class CMaterial
{
    private:
        vector<Texture*> Textures;
        vector<Color3*> Colors;
    public:
        void PassToShader(ShaderProgram *pShader);

        int AddTexture(Texture *texNewTexture);
        int AddColor(Color3 *colNewColor);

        void SetColorsNo(int nNo);
        void SetTexturesNo(int nNo);

        Texture* GetTexturePointer(int nWhich);
        Color3* GetColorPointer(int nWhich);

        void ChangeColor(int nWhich, Color3 *pNewCol);
        void ChangeTexture(int nWhich, Texture *pNewTex);
};

#endif
